home *** CD-ROM | disk | FTP | other *** search
- Path: sun001.spd.dsccc.com!spd!jmccarty
- From: jmccarty@spd.dsccc.com (Mike McCarty)
- Newsgroups: comp.lang.c
- Subject: Re: Watch out! C "gotcha!"
- Date: 16 Feb 1996 21:16:18 GMT
- Organization: DSC Communications Corporation, Plano, Texas USA
- Message-ID: <4g2s72$mnc@sun001.spd.dsccc.com>
- References: <4fthhh$7th@blackice.winternet.com> <4g01ss$hgj@sun001.spd.dsccc.com> <3123C0D8.60AF@oc.com>
- NNTP-Posting-Host: aplo139.spd.dsccc.com
-
- In article <3123C0D8.60AF@oc.com>, Larry Weiss <lfw@oc.com> wrote:
- )Mike McCarty wrote:
- ) >
- ) > I know of no way to make a compiler catch spelling mistakes on labels
- ) > except by doing what Pascal does - force declaration of labels.
- ) > ... There is no solution except to require declarations.
- )
- )It would help a little (or maybe a lot) if the compiler were to
- )flag label declarations that were never referenced.
-
- Yes, it would be helpful. I hope some compiler writers out there are
- listening. But it would not be a solution. The language itself has some
- flaws which ANSI did not cure.
-
- Another which the ANSI committee botched (IMO) is not extending the
- syntax for bit fields so that one could specify alignment, size of
- basic integer type, and bit numbering convention. Likewise for
- enumerated types, to specify alignment, and size of basic integer type
- to use.
-
- Mike
- ----
- char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
-
- I don't speak for DSC. <- They make me say that.
-